import request from '@utils/request'

// 学生分页查询
export function getUserList (data) {
  return request({
    url: '/laborEducation/getUserPage',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

// 活动下拉框
export function getCourses (data) {
  return request({
    url: '/laborEducation/getLaborList',
    method: 'get',
    params: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

// 删除成员
export function removeUser (data) {
  return request({
    url: '/laborEducation/delLaborUser',
    method: 'get',
    params: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}